package com.lyEducation.controllers.system;

import com.lyEducation.controllers.base.BaseController;
import com.lyEducation.controllers.dto.system.SysLevelDto;
import com.lyEducation.core.CrudService;
import com.lyEducation.core.system.SysLevelService;
import com.lyEducation.util.controllerUtil.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("sysLevel/{mId}")
public class SysLevelController extends BaseController implements CrudService<SysLevelDto, String> {
  @Autowired private SysLevelService sysLevelService;
  
  @GetMapping("addSysLevel")
  @Override
  public JsonResult add(SysLevelDto sysLevelItem) {

    return sysLevelService.addSysLevel(sysLevelItem);
  }

  @GetMapping("delByIdSysLevel")
  @Override
  public JsonResult delById(String s) {
    return null;
  }

  @GetMapping("updSysLevel")
  @Override
  public JsonResult upd(SysLevelDto sysLevelDto) {
    return null;
  }

  @RequestMapping("findByIdSysLevel")
  @Override
  public JsonResult findById(String s) {
    return null;
  }


  @Override
  public JsonResult onLoad() {
    return JsonResult.putSuccess();
  }
}
